[Top] [Prev] [Next] [Bottom] [Contents]

SaInitClient

Initializes a Sapphire/Web-generated CGI with argc and argv of Main.

Synopsis

#include "SaRnHtml.h"
int SaInitClient(int* argc, char* argv[]);

Arguments

argc
The address of argc from Main.
argv
The argv array from Main.

Return Values

Returns 0.

Description

Initializes a Sapphire/Web-generated CGI with argc and argv of main. Sapphire/Web recognizes a limited number of argc, argv combinations. To read a debug file of form "element name/values" pass:

cginame -debug DebugFileName
To call a function bound to an Anchor element use something like:

cginame FNC=MyAnch__Amy_html
This one argument is contained in the calling HREF of the Anchor after the "?".

If neither of these cases are present, the CGI examines the environment variable "QUERY_STRING", processing the input as an Anchor. Finally, the CGI looks for form elements in its standard input.

Note: Calls dealing with input arguments should not be made before this call is made (i.e. Don't make argument calls in the Project Code's "main function initial code" section.). SaInitClient should be made before calls dealing with input arguments, not the Main's initial code section.

Example

SaInitClient(&argc, argv);


Note: This call is generated automatically by Sapphire/Web in the Main C file for all cgi executables.

See Also



[Top] [Prev] [Next] [Bottom] [Contents]

info@bluestone.com
Copyright © 1997, Bluestone. All rights reserved.